#include "imu_node.hpp"

int main(int argc, char *argv[])
{
    sros_info << "this generate by sros, name: IMU, module: sensor, start..." << sros_endl;

    // create robot node
    auto node = std::make_shared<ImuNode>("IMU", "sensor");
    
    // put sros::node in sros::core for start node
    Core::Param param;
    param.append_node(node);
    
    // sros::code init
    auto ret = Core::ins().init(param);
    if (!ret.v)
    {
        sros_info << ret.msg << sros_endl;
        return 0;
    }
    
    // sros::code run
    Core::ins().run();
    
    sros_info << "this generate by sros, name: IMU, module: sensor, stop..." << sros_endl;
}

